package com.lry.basic.aop.test;

import com.lry.basic.aop.core.ApplicationContext;

import java.util.concurrent.ConcurrentHashMap;

public class Main {
    public static void main(String[] args){
        //模拟容器初始化
        ApplicationContext applicationContext = new ApplicationContext();
        ConcurrentHashMap<String,Object> proxyBeanMap = ApplicationContext.proxyBeanMap;
        //生成代理对象，默认为该类名的小写
        TestAop testAop =(TestAop)proxyBeanMap.get("testAop");
        testAop.doAop();
        testAop.doNone();
    }
}
